package service;

import Pojo.Checkout;
import dao.CheckoutMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CheckoutServiceImpl
  implements CheckoutService
{

  @Autowired
  private CheckoutMapper checkoutMapper;

  public void insertcheckout(Checkout checkout)
  {
    this.checkoutMapper.insertcheckout(checkout);
  }

  public List<Checkout> getallcheckout()
  {
    List checkout = this.checkoutMapper.getallcheckout();
    return checkout;
  }

  public void deletecheckout(Integer id)
  {
    this.checkoutMapper.deletecheckout(id);
  }
}